home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tricks of the Mac Game Programming Gurus
/
TricksOfTheMacGameProgrammingGurus.iso
/
More Source
/
C⁄C++
/
Xconq 7.0d37
/
source
/
misc
/
map.sed
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1994-02-02
|
342 b
|
14 lines
|
[
TEXT/R*ch
]
# Embed each line in a string.
s/^/ "/
s/$/"/
# Convert the first line into a game-module form.
/Xconq/s/^ "Xconq . [+-]* \(.*\)"$/(game-module "xxx"\
(blurb "\1")\
)\
/
# Convrt the Map line into area and terrain layer forms.
/Map/s/ "Map \([0-9]*\) \([0-9]*\) .*$/(area \1 \2)\
(area (terrain (by-char "FILL THIS IN!!!")/
$a\
\ \ ))